import request from '../util/request'

//查找该用户Id的收货地址
export function getAddress(id){
    return request.get(`/address/${id}`);
}

//编辑收货地址
export function editAddress(id,data){
    return request.put(`/address/${id}`,data);
}

//添加该用户id的收货信息
export function addAddress(id,data){
    return request.post(`/address/${id}`,data);
}

//删除收货地址
export function deleteAddress(id){
    return request.delete(`/address/${id}`);
}


//查找支付方式
export function getPay(){
    return request.get(`/payment/enable`);
}
